package com.somsoft.handjc.util;

import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import org.apache.http.NameValuePair;
import org.json.JSONArray;
import org.json.JSONObject;

import com.somsoft.handjc.xzzf.po.CaseInfo;
import com.somsoft.handjc.xzzf.po.DeptCaseCountInfo;
import com.somsoft.handjc.xzzf.po.DeptCaseInfo;
import com.somsoft.handjc.xzzf.po.DeptJianDuInfo;
import com.somsoft.handjc.xzzf.po.DeptYiJiaoData;
import com.somsoft.handjc.xzzf.po.GaProcessInfo;
import com.somsoft.handjc.xzzf.po.MonthInfo;

/**
 * 行政执法   数据获取
 * 
 * 
 */
public class XzzfDataUtil {

		public static List<String> xzzfDeptNames = null;
		
		//部门名称
		public static JSONArray getDeptNames() throws Exception {
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!getDeptNames.hand",new ArrayList<NameValuePair>());
				JSONArray jArray = new JSONArray(s);
				return jArray;
			} catch (Exception e) {
				throw e;
			}
		}
			
		//部门案件信息动态
		public static JSONArray deptInfoCount(List<NameValuePair> params) throws Exception {
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!deptInfoCount.hand",params);
				JSONArray jArray = new JSONArray(s);
				return jArray;
			} catch (Exception e) {
				throw e;
			}
		}
		
		//部门监督信息动态统计
		public static JSONArray deptJianDuInfo(List<NameValuePair> params) throws Exception {
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!deptJianDuInfo.hand",params);
				JSONArray jArray = new JSONArray(s);
				return jArray;
			} catch (Exception e) {
				throw e;
			}
		}
		
		//部门移交立案数据对比
		public static JSONArray deptTransferLiAn(List<NameValuePair> params) throws Exception {
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!deptTransferLiAn.hand",params);
				JSONArray jArray = new JSONArray(s);
				return jArray;
			} catch (Exception e) {
				throw e;
			}
		}
		
		//公安处理结果分类统计
		public static JSONArray gaProcessResult(List<NameValuePair> params) throws Exception {
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!gaProcessResult.hand",params);
				JSONArray jArray = new JSONArray(s);
				return jArray;
			} catch (Exception e) {
				throw e;
			}
		}
		
		//案件量随时间分布统计
		public static List<MonthInfo> banJianLiang(List<NameValuePair> params) throws Exception {
			List<MonthInfo> list = new ArrayList<MonthInfo>();
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!banJianLiang.hand",params);
				JSONArray jArray = new JSONArray(s);
				for (int i = 0; i < jArray.length(); i++) {
					JSONObject obj = jArray.getJSONObject(i);
					MonthInfo mi = new MonthInfo();
					mi.setId(UUID.randomUUID().toString());
					mi.setMonthName(obj.getString("c_month"));
					mi.setMonthCount(obj.getDouble("c_count"));
					list.add(mi);
				}
				return list;
			} catch (Exception e) {
				throw e;
			}
		}
			
			
			
			
		//单条案件信息明细
		public static JSONObject getCaseInfoById(List<NameValuePair> params) throws Exception {
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!getCaseInfoById.hand",params);
				JSONObject jArray = new JSONObject(s);
				return jArray;
			} catch (Exception e) {
				throw e;
			}
		}
		
		//资金监察异常数据列表
		public static JSONArray jc(List<NameValuePair> params) throws Exception {
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!jc.hand",params);
				JSONArray jArray = new JSONArray(s);
				return jArray;
			} catch (Exception e) {
				throw e;
			}
		}
		
		//资金监察明细
		public static JSONObject jcDetail(List<NameValuePair> params) throws Exception {
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!jcDetail.hand",params);
				JSONObject jArray = new JSONObject(s);
				return jArray;
			} catch (Exception e) {
				throw e;
			}
		}
		
		/**
		 * 案件信息
		 * @param params
		 * @return
		 * @throws Exception
		 */
		public static JSONArray findBaseCaseInfo(List<NameValuePair> params) throws Exception {
			try {
				String s = Utils.getJsonData(Utils.SERVER_IP+"/handweb/xzzf/xzzf!findBaseCaseInfo.hand",params);
				JSONArray jArray = new JSONArray(s);
				return jArray;
			} catch (Exception e) {
				throw e;
			}
		}
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		
		//＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝
		
		/**
		 * 部门案件信息动态
		 * 
		 * @return
		 * @throws Exception
		 */
		public static List<DeptCaseInfo> getDeptCaseInfo(List<NameValuePair> params) throws Exception {
			List<DeptCaseInfo> list = new ArrayList<DeptCaseInfo>();
			try {
	//			String s = Utils.getJsonData(Utils.SERVER_IP+"/app/dptdata!dptCseInfo",new ArrayList<NameValuePair>());
				String s = "[{'id':'645FD348-E13E-490E-A92F-602DE33343B1','ingCount':'0','dept':'江北区房管局','overCount':'0'},{'id':'F19B0976-3EA3-419A-94A8-F9799B5E1124','ingCount':'0','dept':'江北区文化广电新闻出版局','overCount':'5'},{'id':'AC941964-D098-4844-9A02-7298EAF0AC4B','ingCount':'1','dept':'江北区农林水利局','overCount':'10'},{'id':'D76A3181-9960-45CC-919A-143B9613F3AA','ingCount':'1','dept':'江北区建设委员会','overCount':'16'},{'id':'D5C4E74C-F725-49B2-81F2-C3766B1BEE6D','ingCount':'2','dept':'江北区卫生局','overCount':'52'},{'id':'AA3A77D2-B97F-49CB-BC1E-250C2B2E4A67','ingCount':'2','dept':'江北区食品药品监督管理局分局','overCount':'85'},{'id':'AD0CE794-8F44-48A6-A2E1-A6B5FEB6A282','ingCount':'2','dept':'江北区市政园林局','overCount':'853'},{'id':'0C6E138C-9C32-4AA6-992D-C76C0A8312A8','ingCount':'3','dept':'江北区国土资源管理局','overCount':'0'},{'id':'862DB81A-B6F1-48C0-A21B-4EC07216D438','ingCount':'3','dept':'江北区工商分局','overCount':'8'},{'id':'FD590129-CDD5-44FE-97EA-A59B12B95E8C','ingCount':'4','dept':'江北区烟草专卖局','overCount':'176'},{'id':'CE9649C5-7A4E-4895-A572-9BF8ECB9B7BB','ingCount':'5','dept':'江北区环保局','overCount':'20'},{'id':'7A9F281F-4B02-4FE6-8D0F-AFB8223712AE','ingCount':'7','dept':'江北区地税局','overCount':'4'},{'id':'E6E0EDE3-60BF-4E6E-B4B7-73A23044876E','ingCount':'10','dept':'江北区安监局','overCount':'0'},{'id':'C9183CA7-722B-449B-AADD-FC7056CD8B70','ingCount':'12','dept':'江北区质量技术监督局','overCount':'60'},{'id':'28EDCFE2-786F-4FEC-9189-78E57A69C69B','ingCount':'14','dept':'江北区计划生育委员会','overCount':'82'},{'id':'D2544752-AC15-466C-A8D3-9C6E583182D5','ingCount':'21','dept':'江北区规划分局','overCount':'8'},{'id':'B761106D-D5DA-45EB-A7CE-7861FB838D69','ingCount':'87','dept':'总数','overCount':'1379'}]";
				JSONArray jArray = new JSONArray(s);
				for (int i = 0; i < jArray.length(); i++) {
					JSONObject obj = jArray.getJSONObject(i);
					DeptCaseInfo dci = new DeptCaseInfo();
					dci.setId(obj.getString("id"));
					dci.setDept(obj.getString("dept"));
					dci.setIngCount(Double.parseDouble(obj.getString("ingCount")));
					dci.setOverCount(Double.parseDouble(obj.getString("overCount")));
					list.add(dci);
				}
			} catch (Exception e) {
				throw e;
			}
			return list;
		}
		
		/**
		 * 部门监督信息动态
		 * 
		 * @return
		 * @throws Exception
		 */
		public static List<DeptJianDuInfo> getDeptJianDuInfo() throws Exception {
			List<DeptJianDuInfo> list = new ArrayList<DeptJianDuInfo>();
			try {
	//			String s = Utils.getJsonData(Utils.SERVER_IP+"/app/dptdata!dptJianDuInfo",new ArrayList<NameValuePair>());
				
				String s = "[{'id':'BD176BD6-6281-4B11-84AC-8EB874B8F11F','abnormal':'287','normal':'1329','dept':'江北区质量技术监督局'},{'id':'57416DFB-B523-4FD0-A2C7-82E0011C10FA','abnormal':'32','normal':'204','dept':'江北区工商分局'},{'id':'7F75E111-138F-4B3B-B1B1-A8BC10381FFC','abnormal':'17','normal':'94','dept':'江北区文化广电新闻出版局'},{'id':'1F972E79-BACB-493D-BA93-2A22C432B43E','abnormal':'870','normal':'3250','dept':'江北区烟草专卖局'},{'id':'EC6BB170-6024-4AA3-8BB1-1E4E709185CB','abnormal':'46','normal':'201','dept':'江北区农林水利局'},{'id':'6B77E8E2-095D-4968-A454-6FD56BBED619','abnormal':'76','normal':'526','dept':'江北区规划分局'},{'id':'88912C68-ABFE-4B0F-BA86-974172E68267','abnormal':'129','normal':'413','dept':'江北区环保局'},{'id':'B974C9F8-8F49-4B0B-A9C2-5495D6CF52B8','abnormal':'2098','normal':'15879','dept':'江北区市政园林局'},{'id':'7169F509-CB38-4723-98B4-1922925CD2C1','abnormal':'0','normal':'181','dept':'江北区安监局'},{'id':'6443BB8A-FC64-4653-8B5D-211E3603005A','abnormal':'66','normal':'317','dept':'江北区建设委员会'},{'id':'129ECC4B-3441-42EA-A1B1-7E9B1F056ACE','abnormal':'277','normal':'1868','dept':'江北区计划生育委员会'},{'id':'9AAFDAF9-09BC-4C33-83F4-62854DE6D225','abnormal':'0','normal':'57','dept':'江北区国土资源管理局'},{'id':'CA2618E3-2C9E-43F8-B28D-55A37F568B74','abnormal':'194','normal':'1004','dept':'江北区卫生局'},{'id':'FEACBDF2-C117-44C0-B209-8C54F1E262D4','abnormal':'12','normal':'203','dept':'江北区地税局'},{'id':'6A63ADC4-DA16-44C9-8BC4-9C91526B9376','abnormal':'174','normal':'1689','dept':'江北区食品药品监督管理局分局'},{'id':'4DAE0F89-98F1-4491-B2BB-0A2AC3C5E6DC','abnormal':'0','normal':'0','dept':'江北区房管局'}]";
				JSONArray jArray = new JSONArray(s);
				for (int i = 0; i < jArray.length(); i++) {
					JSONObject obj = jArray.getJSONObject(i);
					DeptJianDuInfo djdi = new DeptJianDuInfo();
					djdi.setId(obj.getString("id"));
					djdi.setDept(obj.getString("dept"));
					djdi.setNormal(Double.parseDouble(obj.getString("normal")));
					djdi.setAbnormal(Double.parseDouble(obj.getString("abnormal")));
					list.add(djdi);
				}
			} catch (Exception e) {
				throw e;
			}
			return list;
		}
		
		/**
		 * 部门移交立案数据对比
		 * 
		 * @return
		 * @throws Exception
		 */
		public static List<DeptYiJiaoData> getDeptYiJiaoData() throws Exception {
			List<DeptYiJiaoData> list = new ArrayList<DeptYiJiaoData>();
			try {
	//			String s = Utils.getJsonData(Utils.SERVER_IP+"/app/dptdata!deptYiJiaoDataCompare",new ArrayList<NameValuePair>());
				String s = "[{'id':'B6A572BA-C631-483E-A5BC-88E4EBD28B9F','notFiling':'0','tranferSum':'0','dept':'江北区质量技术监督局','filing':'0'},{'id':'CF52A7B0-7C64-4538-876F-D0B79BCC5A31','notFiling':'0','tranferSum':'1','dept':'江北区工商分局','filing':'1'},{'id':'315DAB13-0DD4-4956-A7D5-77CE615643A0','notFiling':'0','tranferSum':'0','dept':'江北区文化广电新闻出版局','filing':'0'},{'id':'A7CC9F41-8114-4418-84AE-48E1BADDD225','notFiling':'0','tranferSum':'1','dept':'江北区烟草专卖局','filing':'1'},{'id':'E56D5759-68BB-4D61-9684-57746138892C','notFiling':'0','tranferSum':'0','dept':'江北区农林水利局','filing':'0'},{'id':'F3107DBE-89CF-45B6-8455-70DA9CBD68E1','notFiling':'0','tranferSum':'1','dept':'江北区规划分局','filing':'1'},{'id':'378B072D-251C-44C5-B974-2F0D2C5E1A8B','notFiling':'0','tranferSum':'0','dept':'江北区环保局','filing':'0'},{'id':'B45050D8-1123-4EE3-8BCD-DE3671AE5BCE','notFiling':'0','tranferSum':'0','dept':'江北区市政园林局','filing':'0'},{'id':'C46C0841-5F03-4590-855A-0B4F3875EFFA','notFiling':'0','tranferSum':'0','dept':'江北区安监局','filing':'0'},{'id':'2D652FA0-78F6-4C9E-8108-512F6261A8C1','notFiling':'0','tranferSum':'0','dept':'江北区建设委员会','filing':'0'},{'id':'05504C9A-C22A-4CC9-997D-F87708F8E128','notFiling':'0','tranferSum':'0','dept':'江北区计划生育委员会','filing':'0'},{'id':'73CF05A3-23D8-443A-8C43-C5AD4714A370','notFiling':'0','tranferSum':'0','dept':'江北区国土资源管理局','filing':'0'},{'id':'BF0145AA-51D4-4593-B239-4FDBC4B62CDA','notFiling':'0','tranferSum':'3','dept':'江北区卫生局','filing':'3'},{'id':'59E128C8-D4CC-4BD0-96E4-BC18C71DD17A','notFiling':'0','tranferSum':'0','dept':'江北区地税局','filing':'0'},{'id':'AC6742E0-8E9A-46A5-9A02-4B207D0BA827','notFiling':'0','tranferSum':'3','dept':'江北区食品药品监督管理局分局','filing':'3'},{'id':'21B0181F-E5DE-44C9-BB28-90BE111199E5','notFiling':'0','tranferSum':'0','dept':'江北区房管局','filing':'0'}]";
				JSONArray jArray = new JSONArray(s);
				for (int i = 0; i < jArray.length(); i++) {
					JSONObject obj = jArray.getJSONObject(i);
					DeptYiJiaoData dyjd = new DeptYiJiaoData();
					dyjd.setId(obj.getString("id"));
					dyjd.setDept(obj.getString("dept"));
					dyjd.setTranferSum(Double.parseDouble(obj.getString("tranferSum")));
					dyjd.setFiling(Double.parseDouble(obj.getString("filing")));
					dyjd.setNotFiling(Double.parseDouble(obj.getString("notFiling")));
					list.add(dyjd);
				}
			} catch (Exception e) {
				throw e;
			}
			return list;
		}
	
		
		/**
		 * 案件量统计
		 * 
		 * @return
		 * @throws Exception
		 */
		public static List<DeptCaseCountInfo> getDeptCaseCountInfo() throws Exception {
			List<DeptCaseCountInfo> list = new ArrayList<DeptCaseCountInfo>();
			try {
				//String s = Utils.getJsonData(Utils.SERVER_IP+"/app/dptdata!getDptCaseCountInfo",new ArrayList<NameValuePair>());
				String s = "[{'id':'3047D24B-64C8-41A9-ABAA-00E4C4A40F9C','causecount':'332','causeName':'第十八条  道路上禁止下列行为：（一）在...'},{'id':'B97D96D7-7314-4D5B-ADAF-B4880238CE88','causecount':'306','causeName':'第二十一条 在城市道路设施上，未经市政行...'},{'id':'8569F339-80E9-49F0-9C51-94E12E454BA1','causecount':'126','causeName':'无烟草专卖零售许可证经营烟草专卖制品'},{'id':'52F4F97C-7C2F-4A73-B0F7-8C356261ECF1','causecount':'110','causeName':'第六十八条  密闭式运输车辆运输建筑渣土...'},{'id':'65730ECC-A694-4C9E-9269-87E6A8A5F654','causecount':'47','causeName':'第三十九条  禁止在树木和建筑物、构筑物...'},{'id':'53E7CB4B-AEC4-45E7-AD7C-EFAA09A37E8F','causecount':'45','causeName':'未婚生育－孩'},{'id':'2D7CB6FA-BA5A-4BC0-B47B-DED07CD8A2DA','causecount':'37','causeName':'未在当地烟草专卖批发企业进货'},{'id':'55806FBA-C2B6-4FDE-B8C1-5DA588B3033E','causecount':'32','causeName':'未取得《医疗机构执业许可证》开展诊疗活动'},{'id':'795513BD-C6D0-463A-A60C-2AA8E7525B7D','causecount':'32','causeName':'第十八条  道路上禁止下列行为：（六）在...'},{'id':'6CC97F50-2B05-48A4-98F5-7AA03CAC4584','causecount':'31','causeName':'经营禁止生产经营的食品案  '},{'id':'9F7B0581-7E5D-4790-8664-9C3E0A6290B8','causecount':'25','causeName':'违法生育－孩或收养的'},{'id':'FDA6BACA-8978-4A58-B3C7-A10C288F81C9','causecount':'20','causeName':'未经审批再生育'},{'id':'DD0E9215-31E8-43B0-99C0-AF91F9E157E5','causecount':'18','causeName':'生产、销售、使用劣药'},{'id':'4BA8B4F0-ADC7-465E-87E7-1C5B702B1AA7','causecount':'18','causeName':'重庆市城乡规划条例第六十二条'},{'id':'33A18CF3-C203-4DD3-8B45-554EDE71492C','causecount':'14','causeName':'伪造产品产地，伪造或者冒用他人厂名、厂址...'}]";
				JSONArray jArray = new JSONArray(s);
				for (int i = 0; i < jArray.length(); i++) {
					JSONObject obj = jArray.getJSONObject(i);
					DeptCaseCountInfo dcci = new DeptCaseCountInfo();
					dcci.setId(obj.getString("id"));
					dcci.setCauseName(obj.getString("causeName"));
					dcci.setCausecount(Double.parseDouble(obj.getString("causecount")));
					list.add(dcci);
				}
			} catch (Exception e) {
				throw e;
			}
			return list;
		}
		
		/**
		 * 公安处理结果分类
		 * 
		 * @return
		 * @throws Exception
		 */
		public static List<GaProcessInfo> getGaProcessInfo() throws Exception {
			List<GaProcessInfo> list = new ArrayList<GaProcessInfo>();
			try {
				//String s = Utils.getJsonData(Utils.SERVER_IP+"/app/dptdata!getGaProcessInfo",new ArrayList<NameValuePair>());
				String s = "[{'id':'CF76B5F1-439B-47AF-92DB-597576C722D9','resultCount':'0','resultName':'其他处理'},{'id':'F9759C70-3ADE-45CF-A1A9-6D0B5ECA371E','resultCount':'9','resultName':'提请批捕'},{'id':'18780207-B953-472B-93B6-3DB4D44F0D33','resultCount':'1','resultName':'移送起诉'}]";
				JSONArray jArray = new JSONArray(s);
				for (int i = 0; i < jArray.length(); i++) {
					JSONObject obj = jArray.getJSONObject(i);
					GaProcessInfo gpi = new GaProcessInfo();
					gpi.setId(obj.getString("id"));
					gpi.setResultName(obj.getString("resultName"));
					gpi.setResultCount(Double.parseDouble(obj.getString("resultCount")));
					list.add(gpi);
				}
			} catch (Exception e) {
				throw e;
			}
			return list;
		}
		
		/**
		 * 案件量随时间分布统计
		 * 
		 * @return
		 * @throws Exception
		 */
		public static List<MonthInfo> getMonthInfo() throws Exception {
			List<MonthInfo> list = new ArrayList<MonthInfo>();
			try {
				//String s = Utils.getJsonData(Utils.SERVER_IP+"/app/dptdata!getMonthInfo",new ArrayList<NameValuePair>());
				String s = "[{'id':'140AA62E-28B7-4969-BFCB-F92AC0E13CF5','monthName':'2011-04','monthCount':'151'},{'id':'CBA15837-9EF2-41C8-8E22-EC363A19D493','monthName':'2011-05','monthCount':'173'},{'id':'5C6D837C-9E12-42DA-BE36-8FEC8A44CBFF','monthName':'2011-06','monthCount':'91'},{'id':'A9EF75EB-D350-414D-80A6-D471DD89CC3C','monthName':'2011-07','monthCount':'173'},{'id':'063FEA99-B8F4-46E0-AF56-90FCDDC5139B','monthName':'2011-08','monthCount':'317'},{'id':'AE70D649-2D71-4365-840A-9FAB23D4DDD8','monthName':'2011-09','monthCount':'104'},{'id':'CD1A7310-36F6-45DE-B2E3-CC90E1A224A4','monthName':'2011-10','monthCount':'23'},{'id':'F157527F-5D4F-4707-8DD1-0CD262ABC8BA','monthName':'2011-11','monthCount':'31'},{'id':'9975F069-F371-42C4-AA3B-7EEAC732E33E','monthName':'2011-12','monthCount':'2'},{'id':'13C45795-D8FE-4EAB-B01C-91F4BF75E28E','monthName':'2012-01','monthCount':'0'},{'id':'71E6CD19-8AE9-4EE0-A314-B3A86869A1E2','monthName':'2012-02','monthCount':'17'},{'id':'C255C165-613B-464F-8B8D-CB4CC2B16D61','monthName':'2012-03','monthCount':'1'}]";
				JSONArray jArray = new JSONArray(s);
				for (int i = 0; i < jArray.length(); i++) {
					JSONObject obj = jArray.getJSONObject(i);
					MonthInfo mi = new MonthInfo();
					mi.setId(obj.getString("id"));
					mi.setMonthName(obj.getString("monthName"));
					mi.setMonthCount(Double.parseDouble(obj.getString("monthCount")));
					list.add(mi);
				}
			} catch (Exception e) {
				throw e;
			}
			return list;
		}
		
		/**
		 * 综合查询——案件信息查询
		 * 
		 * @return
		 * @throws Exception
		 */
		public static List<CaseInfo> getCaseInfoQuery() throws Exception {
			List<CaseInfo> list = new ArrayList<CaseInfo>();
			try {
	//			String s = Utils.getJsonData(Utils.SERVER_IP+"/app/biz/querycase/querycase!caseInfoQuery",new ArrayList<NameValuePair>());
				String s = "[{'id':'c201108010143431935','breaker':'张行兰','caseNo':'<2011>55','caseName':'违去生育一孩'},{'id':'c201109010227161293','breaker':'李晓燕','caseNo':'<2011>63','caseName':'违法生育－男孩'},{'id':'c201105110700431535','breaker':'吴春梅,张强','caseNo':',<2011.>31','caseName':'违法生育一孩'},{'id':'c201101201049131014','breaker':'袁建明、袁建炉','caseNo':'江北烟处[2008]第90200800299 号','caseName':'袁建明、袁建炉涉嫌生产、销售伪劣产品'},{'id':'c201109020137111474','breaker':'陈学贵','caseNo':'<2011>65','caseName':'婚外生育'},{'id':'c201109060237181870','breaker':'李发明','caseNo':'<2011>66','caseName':'违法生育一孩'},{'id':'c201107200834371702','breaker':'卢太贵.陈秀英','caseNo':'<2011>53','caseName':'违法生育'},{'id':'552e95bc-6e06-4fb0-9e50-426c5b42c24c','breaker':'江涛','caseNo':'<2011>87','caseName':'违法生育'},{'id':'c201105110848251600','breaker':'袁建明、袁建炉','caseNo':'江北烟处［2009］090200900228号','caseName':'涉嫌销售假冒伪劣烟草专卖品'},{'id':'c201101201132501033','breaker':'胡贤猛','caseNo':'江北烟处[2010]第90204100233号','caseName':'胡贤猛为按要求在当地烟草专卖批发企业进货'}]";
				JSONArray jArray = new JSONArray(s);
				for (int i = 0; i < jArray.length(); i++) {
					JSONObject obj = jArray.getJSONObject(i);
					CaseInfo ci = new CaseInfo();
					ci.setCaseId(obj.getString("id"));
					ci.setCaseNo(obj.getString("caseNo"));
					ci.setBreakers(obj.getString("breaker"));
					ci.setCaseName(obj.getString("caseName"));
					list.add(ci);
				}
			} catch (Exception e) {
				throw e;
			}
			return list;
		}
}
